/*
 * @Author: moonwater 13812995013@163.com
 * @Date: 2025-03-06 11:32:46
 * @LastEditors: moonwater 13812995013@163.com
 * @LastEditTime: 2025-03-06 11:41:53
 * @FilePath: \盐师22Git仓库\day09\Testo1.java
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
package day09;
//多态测试类
public class Testo1 {
    public static void main(String[] args) {
        /*1.继承 子类继承父类
        2.重写 子类重写父类方法
        3.父类指向子类对象 */
        Point p1 =new Circle(0,0,5);
        p1.show();
        p1 = new TCircle(0,0,5,5);
        p1.show();
    }
}
